package solutions.leetcode.easy;

import solutions.lib.BaseSolution;

/**
 * @author lizhidong
 * <a href="https://leetcode-cn.com/problems/perfect-number/">507.完美数</a>
 */
public class Solution507 extends BaseSolution {

    public boolean checkPerfectNumber(int num) {
        return num == 6 || num == 28 || num == 496 || num == 8128 || num == 33550336;
    }

    public static void main(String[] args) {
        Solution507 solution = new Solution507();
        System.out.println(solution.checkPerfectNumber(33550336));
    }
}